package dpatterns.observer.weatherorama;

import dpatterns.observer.weatherorama.observers.impl.CurrentConditions;
import dpatterns.observer.weatherorama.observers.impl.Statistics;
import dpatterns.observer.weatherorama.subjects.impl.WeatherData;

public class WeatherStation {

	public static void main(String[] args) {
		WeatherData weatherData = new WeatherData();
		CurrentConditions conditions = new CurrentConditions(weatherData);
		Statistics statistics = new Statistics(weatherData);
		
		weatherData.setMeasurements(72, 10, 32);
		conditions.display();
		statistics.display();
		
		System.out.println("\n");
		
		weatherData.setMeasurements(74, 02, 22);
		weatherData.setMeasurements(64, 25, 12);
		weatherData.setMeasurements(84, 40, 42);
		conditions.display();
		statistics.display();
	}

}
